package com.airport.ticket.dao;

import com.airport.ticket.entity.FlightInfo;
import com.airport.ticket.entity.FlightInfoExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FlightInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FlightInfo record);

    int insertSelective(FlightInfo record);

    List<FlightInfo> selectByExample(FlightInfoExample example);

    FlightInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") FlightInfo record, @Param("example") FlightInfoExample example);

    int updateByExample(@Param("record") FlightInfo record, @Param("example") FlightInfoExample example);

    int updateByPrimaryKeySelective(FlightInfo record);

    int updateByPrimaryKey(FlightInfo record);

    /**
     * 搜索中转的信息
     * @param condMap   条件
     * @return
     */
    List<FlightInfo> selectCondUnionList(Map<String,Object> condMap);
}